package com.tfos.study.mvc.configurable.web.binding.initializer.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;

/**
 * 类功能说明：ConfigurableWebBindingInitializer的用法,只需要配置这个bean,就可以自动实现String类型与Date类型之间的转换
 * 公司名称：TF（腾飞）开源 <br/>
 * 作者：luorongxi <br/>
 */
@Configuration
public class WebDataBindConfig {

    @Bean
    ConfigurableWebBindingInitializer configurableWebBindingInitializer(){
        return new ConfigurableWebBindingInitializer();
    }

}
